﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PrinterMonitorSvc.Model
{
    /// <summary>
    /// 打印任务实体
    /// </summary>
    public class PrintTaskModel
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="id">任务ID（关联请求ID）</param>
        /// <param name="printerName">打印机名称</param>
        /// <param name="pdfurl">本地URL</param>
        public PrintTaskModel(string id, string printerName, string pdfurl, int printCount = 1)
        {
            this.Id = id;
            this.PrinterName = printerName;
            this.Pdfurl = pdfurl;
            this.PrintCount = printCount <= 0 ? 1 : printCount;
        }

        /// <summary>
        /// 任务ID（关联请求ID）
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 打印机名称
        /// </summary>
        public string PrinterName { get; set; }
        /// <summary>
        /// 打印URL
        /// </summary>
        public string Pdfurl { get; set; }
        /// <summary>
        /// 打印数量
        /// </summary>
        public int PrintCount { get; set; }

    }
}
